<?php include get_partial('_header');?>
<?php include get_partial('_left');?>
<div id="right">
<h2>新闻列表</h2>
<?php
if ($articles) {
?>
<ul>
<?php 
  foreach ($articles as $article) {
?>
  <li><a href="<?php echo url('index.php?module=article&action=show&id=' . $article['id']);?>"><?php echo $article['title'];?></a> <?php echo $article['created_at'];?></li>
<?php
  }
?>
</ul>
  <table class="page" border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
      <td class="td01"><?php echo $listing_split->display_count('显示 <b>%d</b> 到 <b>%d</b> (共 <b>%d</b> 个文章)'); ?></td>
      <td class="td02" align="right"><?php echo '页数：' . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, 'module=article'); ?></td>
    </tr>
  </table>
<?php
} else {
?>
  no article
<?php 
}
?>
</div>
<?php include get_partial('_footer');?>